﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<EnterpriseManagement.Models.SearchEmployeeModel>" %>

<style type="text/css">
input[type="text"] 
{
	margin-left:auto;
    width: 80px;
    border: 1px solid #CCC;
}
td
{
font-size:8px;
}
</style>

<div id="searchemployee">
    <h1>查看员工信息</h1>
     <br /><br />
   <% using (Ajax.BeginForm("SearchEmployee", new AjaxOptions { UpdateTargetId = "searchEmployeeResults" }))
      {%>
        <%: Html.ValidationSummary(true) %>
        
     <table  id="tablenoframe" style ="margin-left:9%">
            <tr>
            <td class="label"><%: Html.LabelFor(model => model.EmployeeId) %></td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.EmployeeId)%>
                <%: Html.ValidationMessageFor(model => model.EmployeeId)%>
            </td>
            <td class="label"><%: Html.LabelFor(model => model.Name)%></td>
            <td class="editor-field">
                <%: Html.TextBoxFor(model => model.Name)%>
                <%: Html.ValidationMessageFor(model => model.Name)%>
            </td>
            <td class="label" ><%: Html.LabelFor(model => model.Sex)%></td>
            <td class="editor-field" >
                <%: Html.DropDownList("Sex",(SelectList) ViewData["Sex"],"", new { style="width:80px"})%>
                <%: Html.ValidationMessageFor(model => model.Sex)%>
            </td>

            <td class="label"><%: Html.LabelFor(model => model.Position)%></td>
            <td class="editor-field">
                <%: Html.DropDownList("Position", (SelectList)ViewData["Position"], "", new { style = "width:80px" })%>
                <%: Html.ValidationMessageFor(model => model.Position)%>
            </td>
            <td class="label"><%: Html.LabelFor(model => model.EmployeeStatus)%></td>
            <td class="editor-field">
                <%: Html.DropDownList("EmployeeStatus", (SelectList)ViewData["EmployeeStatus"], "", new { style = "width:80px" })%>
                <%: Html.ValidationMessageFor(model => model.EmployeeStatus)%>
            </td>
            
            <td><input type="submit" value="查找" style ="margin-left:20px;" /></td>
            </tr>
            </table>
            

     
    <% } %>

    </div>
    <br /><br />
    <div id="searchEmployeeResults">
    
    </div>